home *** CD-ROM | disk | FTP | other *** search
- gsave
- /hascolor
- /deviceinfo where
- {pop deviceinfo /Colors known
- {deviceinfo /Colors get exec 1 gt}
- {false} ifelse}
- {/statusdict where
- {pop statusdict /processcolors known
- {statusdict /processcolors get exec 1 gt}
- {false} ifelse}
- {false} ifelse}
- ifelse
- def
- 40 dict begin
- /_image systemdict /image get def
- /_setgray systemdict /setgray get def
- /_currentgray systemdict /currentgray get def
- /_settransfer systemdict /settransfer get def
- /_currenttransfer systemdict /currenttransfer get def
- /blank 0 _currenttransfer exec
- 1 _currenttransfer exec eq def
- /negative blank
- {0 _currenttransfer exec 0.5 lt}
- {0 _currenttransfer exec 1 _currenttransfer exec gt}
- ifelse def
- /inverted? negative def
- /level2 systemdict /languagelevel known
- {languagelevel 2 ge} {false} ifelse def
- /foureq {4 index eq 8 1 roll
- 4 index eq 8 1 roll
- 4 index eq 8 1 roll
- 4 index eq 8 1 roll
- pop pop pop pop and and and} def
- hascolor {/band 0 def} {/band 5 def} ifelse
- /setcmykcolor where {pop
- 1 0 0 0 setcmykcolor _currentgray 1 exch sub
- 0 1 0 0 setcmykcolor _currentgray 1 exch sub
- 0 0 1 0 setcmykcolor _currentgray 1 exch sub
- 0 0 0 1 setcmykcolor _currentgray 1 exch sub
- 4 {4 copy} repeat
- 1 0 0 0 foureq {/band 1 store} if
- 0 1 0 0 foureq {/band 2 store} if
- 0 0 1 0 foureq {/band 3 store} if
- 0 0 0 1 foureq {/band 4 store} if
- 0 0 0 0 foureq {/band 6 store} if} if
- blank {/band 6 store} if
- gsave
-